package at.com.vn.chess.entity;

import java.util.Date;

import at.com.vn.chess.util.Const;

public class RoomTable {

	private Integer roomId;
	private Integer tableId;
	private String player1Id;
	private String player2Id;
	private String status;
	private Date lastAccess;

	public RoomTable() {
		super();
		this.roomId = 1;
		this.tableId = 1;
		this.player1Id = "blank";
		this.player2Id = "blank";
		this.status = Const.STATUS_IDLE;
		this.lastAccess = new Date();
	}

	public RoomTable(Integer roomId) {
		this();

		this.roomId = roomId;
	}
	
	public RoomTable(Integer roomId, Integer tableId) {
		this(roomId);

		this.tableId = tableId;
	}

	public Integer getRoomId() {
		return roomId;
	}

	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}

	public Integer getTableId() {
		return tableId;
	}

	public void setTableId(Integer tableId) {
		this.tableId = tableId;
	}

	public String getPlayer1Id() {
		return player1Id;
	}

	public void setPlayer1Id(String player1Id) {
		this.player1Id = player1Id;
	}

	public String getPlayer2Id() {
		return player2Id;
	}

	public void setPlayer2Id(String player2Id) {
		this.player2Id = player2Id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getLastAccess() {
		return lastAccess;
	}

	public void setLastAccess(Date lastAccess) {
		this.lastAccess = lastAccess;
	}
}
